package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "VideoClass")
public class VideoClass extends BaseModel {	//视频课程
	private String name;     //名称
	private String summary;     //简介
	private Boolean hangupLimit;     //挂机限制
	private Double questionTime;     //题目插入时间
	@ManyToOne(cascade = CascadeType.REFRESH)
	private Course course;     //课程id
	@OneToOne(cascade = CascadeType.REFRESH)
	private Video video;     //视频id
	private Integer sort;     //排序



}

